package com.itheima.night;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Demo03 {
    public static void main(String[] args) throws IOException {
        ClassLoader loader = ClassLoader.getSystemClassLoader();
        InputStream stream = loader.getResourceAsStream("prop.properties");
        Properties prop = new Properties();
        prop.load(stream);
        System.out.println(prop);
        stream.close();
    }
}
